package com.example.mybatisplusdemo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("cart")
public class Cart {
    @TableId(value = "id",type =  IdType.AUTO)
    private String id;
    private String userid;
    private String goodid;
    private String num;
    @TableField(exist = false)
    private String goodname;
    @TableField(exist = false)
    private String catename;

    @Override
    public String toString() {
        return "Cart{" +
                "id='" + id + '\'' +
                ", userid='" + userid + '\'' +
                ", goodid='" + goodid + '\'' +
                ", num='" + num + '\'' +
                ", goodname='" + goodname + '\'' +
                ", catename='" + catename + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getGoodid() {
        return goodid;
    }

    public void setGoodid(String goodid) {
        this.goodid = goodid;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getGoodname() {
        return goodname;
    }

    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    public String getCatename() {
        return catename;
    }

    public void setCatename(String catename) {
        this.catename = catename;
    }
}
